package com.google.gson.internal;

public final class h {
    public final Object a;
    public final Object b;

    public h(Object obj, Object obj2) {
        this.a = obj;
        this.b = obj2;
    }

    private static boolean a(Object obj, Object obj2) {
        return obj == obj2 || (obj != null && obj.equals(obj2));
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof h)) {
            return false;
        }
        h hVar = (h) obj;
        return a(this.a, hVar.a) && a(this.b, hVar.b);
    }

    public int hashCode() {
        int i = 0;
        int hashCode = (this.a != null ? this.a.hashCode() : 0) * 17;
        if (this.b != null) {
            i = this.b.hashCode();
        }
        return hashCode + (i * 17);
    }

    public String toString() {
        return String.format("{%s,%s}", new Object[]{this.a, this.b});
    }
}
